Skip to content

Commit

Permalink
bug: fix new functionality and delete app
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Jun 5, 2023
1 parent 906c836 commit 6db172d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def check_firebase_status(
for key, value in meta_data.items():
# return available if there are conditions that haven't been started
if value["start_time"] is None:
firebase_admin.delete_app(app)
available = True
else:
if not value["finished"]:
Expand All @@ -357,12 +356,11 @@ def check_firebase_status(
# check weather the started condition has timed out, if so, reset start_time and
# set available True
if time_from_started > time_out:
firebase_admin.delete_app(app)
doc_ref_meta.update({key: {"start_time": None, "finished": False}})
available = True
else:
finished = False
firebase_admin.delete_app()
firebase_admin.delete_app(app)
if available:
return 'available'
if finished:
Expand Down

0 comments on commit 6db172d

Please sign in to comment.