mirror of
https://github.com/nikdoof/NextAction.git
synced 2025-12-13 17:52:17 +00:00
Better refresh of data
This commit is contained in:
@@ -363,12 +363,12 @@ def main():
|
|||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
response = GetResponse()
|
response = GetResponse()
|
||||||
json_data = json.loads(response.read())
|
json_data = json.loads(response.read())
|
||||||
response = GetLabels()
|
|
||||||
json_data['Labels'] = json.loads(response.read())
|
|
||||||
response = GetProjects()
|
|
||||||
json_data['Projects'] = json.loads(response.read())
|
|
||||||
logging.debug("Got initial data: %s", json_data)
|
|
||||||
while True:
|
while True:
|
||||||
|
response = GetLabels()
|
||||||
|
json_data['Labels'] = json.loads(response.read())
|
||||||
|
response = GetProjects()
|
||||||
|
json_data['Projects'] = json.loads(response.read())
|
||||||
|
logging.debug("Got initial data: %s", json_data)
|
||||||
logging.info("*** Retrieving Data")
|
logging.info("*** Retrieving Data")
|
||||||
singleton = TodoistData(json_data)
|
singleton = TodoistData(json_data)
|
||||||
logging.info("*** Data built")
|
logging.info("*** Data built")
|
||||||
|
|||||||
Reference in New Issue
Block a user