4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 17:08:09 +00:00

Don't lose edges for a week

This commit is contained in:
Vanhala Antti
2014-06-05 00:27:06 +03:00
parent faa9bbbc92
commit 63ac6ffc06
2 changed files with 7 additions and 3 deletions

View File

@@ -20,7 +20,9 @@ def load_graph_from_db(time_limit):
config.from_pyfile('web_config.cfg')
with NodeDB(config) as db:
return db.get_graph(time_limit)
nodes = db.get_nodes(time_limit)
edges = db.get_edges(nodes, 60*60*24*7)
return (nodes, edges)
if __name__ == '__main__':