Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix: Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Dec 18, 2023
1 parent b685a89 commit 105b378
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tm_admin/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ def __init__(self,
):
"""
This class contains support to accessing a Tasking Manager database, and importing
it in the TM Admin database.
it in the TM Admin database. This works because the TM Admin database schema is based
on the ones used by FMTM and TM. The schemas have been merged into a single one, and
all of the column names are the same across the two schemas except in a few rare cases.
The other change is in TM many columns are enums, but the database type is in. The integer
values from TM are converted to the proper TM Admin enum value.
Args:
inuri (str): The URI for the TM database
Expand Down Expand Up @@ -176,6 +181,9 @@ def writeAllData(self,
else:
values += f"{val}, "
continue
elif table == 'projects':
pass

# All tables
if type(val) == str:
tmp = val.replace("'", "'")
Expand Down

0 comments on commit 105b378

Please sign in to comment.