Skip to content

Commit 04098f8

Browse files
author
Odile Bénassy
committed
Application en fonctionnement.
1 parent 50c03eb commit 04098f8

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

db_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!flask/bin/python
1+
#!/usr/bin/env python3
22
from migrate.versioning import api
33
#from config import SQLALCHEMY_DATABASE_URI
44
from config import SQLALCHEMY_MIGRATE_REPO

db_downgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!flask/bin/python
1+
#!/usr/bin/env python3
22
from migrate.versioning import api
33
from config import SQLALCHEMY_DATABASE_URI
44
from config import SQLALCHEMY_MIGRATE_REPO

db_migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!flask/bin/python
1+
#!/usr/bin/env python3
22
import imp
33
from migrate.versioning import api
44
from config import SQLALCHEMY_MIGRATE_REPO

db_upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!flask/bin/python
1+
#!/usr/bin/env python3
22
from migrate.versioning import api
33
from config import SQLALCHEMY_MIGRATE_REPO
44
from soco import SQLALCHEMY_DATABASE_URI

soco/auth/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class User(Base):
1919

2020
def __init__(self, username):
2121
self.username = username
22+
self.role = 'user'
2223
self.is_authenticated = False
2324

2425
@staticmethod

soco/static/logos/petit-logo.png

6.72 KB
Loading

0 commit comments

Comments
 (0)