Skip to content

Commit

Permalink
Merge pull request #134 from Iam54r1n4/dev-backup
Browse files Browse the repository at this point in the history
add: childs to backup
  • Loading branch information
hiddify-com authored Feb 10, 2024
2 parents a71c9f1 + 20367a7 commit 28a45f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hiddifypanel/panel/hiddify.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def get_child(unique_id):


def dump_db_to_dict():
return {"users": [u.to_dict() for u in User.query.all()],
return {"childs": [u.to_dict() for u in Child.query.all()],
"users": [u.to_dict() for u in User.query.all()],
"domains": [u.to_dict() for u in Domain.query.all()],
"proxies": [u.to_dict() for u in Proxy.query.all()],
"parent_domains": [] if not hconfig(ConfigEnum.license) else [u.to_dict() for u in ParentDomain.query.all()],
Expand Down

0 comments on commit 28a45f7

Please sign in to comment.