Skip to content

Commit

Permalink
Add missing docstring in db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustaballer authored Jul 5, 2023
1 parent 5e52b5c commit 8317634
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openadapt/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ def export_sql(recording_id: int) -> tuple:


def update_db_fname_in_env_file(db_fname: str) -> None:
"""
Update the database filename in the environment file.
Args:
db_fname (str): The new filename for the database.
Returns:
None
"""
with open(config.ENV_FILE_PATH, "r") as env_file:
env_file_lines = [
f"DB_FNAME={db_fname}\n"
Expand Down

0 comments on commit 8317634

Please sign in to comment.