Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Dec 17, 2023
1 parent a05af8a commit a797cc4
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 143 deletions.
280 changes: 140 additions & 140 deletions pygpt.aip

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions src/pygpt_net/core/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,15 @@ def import_files(self, assistant, data):
for file in data:
id = file.id
remote_ids.append(id)

name = ""
path = ""
if id in assistant.files:
name = assistant.files[id]['name']
path = assistant.files[id]['path']
if 'name' in assistant.files[id] and assistant.files[id]['name'] != '':
name = assistant.files[id]['name']
else:
name = id
if 'path' in assistant.files[id]:
path = assistant.files[id]['path']
elif id in assistant.attachments:
name = assistant.attachments[id].name
path = assistant.attachments[id].path
Expand Down
Empty file modified src/pygpt_net/core/camera.py
100644 → 100755
Empty file.
Empty file modified src/pygpt_net/core/controller/camera.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions src/pygpt_net/core/ui/attachments_uploaded.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def update_list(self, id, data):
self.window.models[id].removeRows(0, self.window.models[id].rowCount())
i = 0
for uuid in data:
if 'name' not in data[uuid]:
continue
self.window.models[id].insertRow(i)
self.window.models[id].setData(self.window.models[id].index(i, 0), data[uuid]['name'])
self.window.models[id].setData(self.window.models[id].index(i, 1), data[uuid]['path'])
Expand Down
Empty file modified src/pygpt_net/core/ui/widget/audio.py
100644 → 100755
Empty file.
Empty file modified src/pygpt_net/core/ui/widget/camera.py
100644 → 100755
Empty file.
Empty file modified src/pygpt_net/core/ui/widget/elements.py
100644 → 100755
Empty file.
Empty file modified src/pygpt_net/data/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a797cc4

Please sign in to comment.