mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-23 15:31:23 +01:00
Got rid of from __main__ import, fixed one call missing a parameter
This commit is contained in:
parent
fca81d413c
commit
c58b5c1ea2
@ -56,8 +56,7 @@ QRcode(app)
|
|||||||
# (NB) It is important to import these after the app is created
|
# (NB) It is important to import these after the app is created
|
||||||
import wg, util, rest_routes
|
import wg, util, rest_routes
|
||||||
|
|
||||||
|
rest_routes.register_routes(app)
|
||||||
# TODO: use class and object oriented programming
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
1182
src/rest_routes.py
1182
src/rest_routes.py
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@ import sqlite3
|
|||||||
import configparser
|
import configparser
|
||||||
import time
|
import time
|
||||||
import ipaddress
|
import ipaddress
|
||||||
from __main__ import app
|
from dashboard import app
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
from flask import g
|
from flask import g
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user