diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0a1018c..d327a4a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,8 +15,8 @@ - - + + @@ -287,8 +287,8 @@ - - + + diff --git a/index.py b/index.py index 67e196c..817fe92 100644 --- a/index.py +++ b/index.py @@ -52,5 +52,5 @@ while True: poll() doc_conf = db.collection('configurations').document(os.getenv('CONFIG_CODE')).get().to_dict() print(doc_conf) - poll_time = float(doc_conf('frequency')) + poll_time = float(doc_conf['frequency']) time.sleep(poll_time - ((time.time() - start_time) % poll_time))