previous commit worked, feeling confident

This commit is contained in:
Nicholas Albion
2023-10-04 18:09:28 +11:00
parent fd7958b6c4
commit 2e87627db8
2 changed files with 13 additions and 14 deletions

View File

@@ -229,12 +229,12 @@ class Project:
update_file(data['full_path'], data['content'])
# (File.insert(app=self.app, path=data['path'], name=data['name'], full_path=data['full_path'])
# .on_conflict(
# conflict_target=[File.app, File.name, File.path],
# preserve=[],
# update={'name': data['name'], 'path': data['path'], 'full_path': data['full_path']})
# .execute())
(File.insert(app=self.app, path=data['path'], name=data['name'], full_path=data['full_path'])
.on_conflict(
conflict_target=[File.app, File.name, File.path],
preserve=[],
update={'name': data['name'], 'path': data['path'], 'full_path': data['full_path']})
.execute())
def get_full_file_path(self, file_path: str, file_name: str) -> Tuple[str, str]: