Skip to content

Commit

Permalink
Rename database
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel43 committed Feb 26, 2024
1 parent f756edf commit fc68646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
config.py
users.db
users.db
hedge.db
*.db
6 changes: 3 additions & 3 deletions src/hedge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ODDS_FORMAT = "decimal"
DATE_FORMAT = "iso"

app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///users.db' # SQLite database
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///hedge.db' # SQLite database
app.config['SECRET_KEY'] = 'your_secret_key'

# Initialize APScheduler
Expand Down Expand Up @@ -116,7 +116,7 @@ def login():
return redirect(url_for('login'))
return render_template('login.html')

'''

@app.route('/register', methods=['GET', 'POST'])
def register():
if current_user.is_authenticated:
Expand All @@ -129,7 +129,7 @@ def register():
db.session.commit()
return redirect(url_for('login'))
return render_template('register.html')
'''


@app.route('/logout', methods=['GET', 'POST'])
@login_required
Expand Down

0 comments on commit fc68646

Please sign in to comment.