Skip to content

Commit

Permalink
Impl change suggested by @ttngu207
Browse files Browse the repository at this point in the history
  • Loading branch information
ethho committed Sep 17, 2024
1 parent fc87fa6 commit b5d75a5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pharus/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 176,12 @@ def _fetch_records(
# Loop through each attributes, append to the tuple_to_return with specific
# modification based on data type
for attribute_name, attribute_info in attributes.items():
if attribute_info.is_external:
# Attribute is external type (filepath or attach),
# thus fill it in string instead
(
row.append(non_blobs_row[attribute_name])
if fetch_blobs
else row.append("=FILE=")
)
elif not attribute_info.is_blob:
if not (
attribute_info.is_blob
or attribute_info.is_attachment
or attribute_info.is_filepath
or attribute_info.is_json
):
if non_blobs_row[attribute_name] is None:
# If it is none then just append None
row.append(None)
Expand Down

0 comments on commit b5d75a5

Please sign in to comment.