Skip to content

Commit

Permalink
fix for extended community json
Browse files Browse the repository at this point in the history
  • Loading branch information
Teun Vink committed Jul 16, 2024
1 parent 388f1df commit 005e97b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nlnog_lg.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
app.version = "0.2.1"
asnlist = {}


class Datastore:
communitylist = {}

Expand Down Expand Up @@ -900,8 +901,10 @@ def whois():
# we return JSON data which is rendered in the front end
return jsonify(output=output, title=query)


data = Datastore()
data.communitylist = read_communities()


if __name__ == "__main__":
app.run(app.config.get("BIND_IP", "0.0.0.0"), app.config.get("BIND_PORT", 5000))

0 comments on commit 005e97b

Please sign in to comment.