mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
12 lines
221 B
Python
12 lines
221 B
Python
from project import db
|
|
from project.models import Settings
|
|
|
|
|
|
def upsert_settings():
|
|
result = Settings.query.first()
|
|
if result is None:
|
|
result = Settings()
|
|
db.session.add(result)
|
|
|
|
return result
|