Browse Source

Removed some unnecessary code in db creation

master
Abrax 3 years ago
parent
commit
8dec65d7ce
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      db_methods.py

+ 0
- 4
db_methods.py View File

@@ -3,7 +3,6 @@ import shutil
import webbrowser

import humanize
from peewee import *

import constants
import db_model
@@ -21,10 +20,7 @@ def create_new_database():
if os.path.exists(constants.orm_db_path):
print(constants.orm_db_path + ' already exists, doing nothing.')
else:
db = SqliteDatabase(constants.orm_db_path)
db.connect()
Thread.create_table()
db.close()


def backup_database():

Loading…
Cancel
Save