aboutsummaryrefslogtreecommitdiffstats
path: root/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'cache.py')
-rw-r--r--cache.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/cache.py b/cache.py
deleted file mode 100644
index 5b66e43..0000000
--- a/cache.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import database
-import services
-
-def update_cache():
- print("Updating cache...")
- with database.Database() as db:
- db.update_commit_cache(services.request_recent_commits(since = db.get_last_commit_time()))
- print("Finished adding github commits...")
- db.append_qnas(services.scrape_whispa(db.config.get("qnas", "url"), since = db.get_oldest_qna()))
- print("Finished parsing Q&As...")
-
- print("Started getting docker information with SSH...")
- print(services.cache_all_docker_containers(services.CONFIG.get("ssh", "docker_key_path")))
- print("Finished caching.")
-
-
-if __name__ == "__main__":
- update_cache() \ No newline at end of file