forked from jeanGaston/RF-AD
Code formating
This commit is contained in:
parent
8a06f39a71
commit
61a85efab7
@ -10,9 +10,17 @@ from flask import (
|
|||||||
)
|
)
|
||||||
import io
|
import io
|
||||||
from ldapSync import sync_ldap_to_database
|
from ldapSync import sync_ldap_to_database
|
||||||
from database import (add_door_to_database, check_access, delete_group_from_database,
|
from database import (
|
||||||
get_doors, get_existing_groups, get_latest_logs, get_logs, get_users,
|
add_door_to_database,
|
||||||
log_access_attempt)
|
check_access,
|
||||||
|
delete_group_from_database,
|
||||||
|
get_doors,
|
||||||
|
get_existing_groups,
|
||||||
|
get_latest_logs,
|
||||||
|
get_logs,
|
||||||
|
get_users,
|
||||||
|
log_access_attempt,
|
||||||
|
)
|
||||||
from env import DBFILE, WebServerPORT
|
from env import DBFILE, WebServerPORT
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import schedule
|
|||||||
|
|
||||||
|
|
||||||
setup_database(DBFILE)
|
setup_database(DBFILE)
|
||||||
#print_database_content(DBFILE)
|
# print_database_content(DBFILE)
|
||||||
run_webServer_thread()
|
run_webServer_thread()
|
||||||
schedule_sync_ldap_to_database(DBFILE)
|
schedule_sync_ldap_to_database(DBFILE)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user