Skip to content

Commit

Permalink
#119: Edit attribute names to be camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 25, 2021
1 parent 89b9d19 commit 28cfc72
Show file tree
Hide file tree
Showing 2 changed files with 498 additions and 455 deletions.
8 changes: 4 additions & 4 deletions datagateway_api/common/database/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ def execute_query(self):
else:
record = self.table()
record.update_from_dict(self.row)
record.CREATE_TIME = datetime.datetime.now()
record.MOD_TIME = datetime.datetime.now()
record.CREATE_ID = "user"
record.MOD_ID = "user" # These will need changing
record.createTime = datetime.datetime.now()
record.modTime = datetime.datetime.now()
record.createId = "user"
record.modId = "user" # TODO - These will need changing
self.session.add(record)
self.commit_changes()
self.session.refresh(record)
Expand Down
Loading

0 comments on commit 28cfc72

Please sign in to comment.