Skip to content

Commit

Permalink
reorder lines
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonwang committed Nov 26, 2023
1 parent d570426 commit c7d6457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/app/services/implementations/log_records_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ def __init__(self, logger):
def add_record(self, log_record):
new_log_record = log_record.copy()

tags = new_log_record["tags"]
residents = new_log_record["residents"]
tags = new_log_record["tags"]

del new_log_record["tags"]
del new_log_record["residents"]
del new_log_record["tags"]

try:
new_log_record = LogRecords(**new_log_record)
self.construct_tags(new_log_record, tags)
self.construct_residents(new_log_record, residents)
self.construct_tags(new_log_record, tags)

db.session.add(new_log_record)
db.session.commit()
Expand Down

0 comments on commit c7d6457

Please sign in to comment.