Skip to content

Commit

Permalink
fix: use ramdom secret key when config is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pdmnyberg committed May 7, 2024
1 parent 3674c8c commit de667e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
json,
redirect
)
import os
import logging
from search.oligo_search import (
get_sequence_list,
Expand All @@ -22,7 +23,7 @@
__name__,
static_folder="static"
)
app.secret_key = "myverysecretkey"
app.secret_key = os.getenv("APP_SECRET_KEY", os.urandom(24).hex())


@app.route('/')
Expand Down

0 comments on commit de667e8

Please sign in to comment.