fediseer/overseer/database/functions.py

13 lines
338 B
Python
Raw Normal View History

2023-06-21 17:37:34 +00:00
import time
import uuid
import json
from datetime import datetime, timedelta
from sqlalchemy import func, or_, and_, not_, Boolean
from sqlalchemy.orm import noload
from overseer.flask import db, SQLITE_MODE
from overseer.classes.instance import Instance
def get_all_instances():
return db.session.query(Instance).all()