mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
previous commit worked, feeling confident
This commit is contained in:
@@ -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]:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user