Skip to content

Commit 73ff779

Browse files
committed
minor renames
1 parent cfcfdd4 commit 73ff779

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/opengeodeweb_back/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Data(Base):
1717
name = Column(String, nullable=False)
1818
native_file_name = Column(String, nullable=False)
1919
viewable_file_name = Column(String, nullable=False)
20-
geode_object = Column(String, nullable=False)
2120
binary_light_viewable = Column(String, nullable=True)
21+
geode_object = Column(String, nullable=False)
2222
input_files = Column(JSON, nullable=True)
2323
created_at = Column(DateTime, default=datetime.now)

src/opengeodeweb_back/utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ def save_all_viewables_and_return_info(
184184
name=data.name(),
185185
native_file_name=os.path.basename(saved_native_file_path[0]),
186186
viewable_file_name=os.path.basename(saved_viewable_file_path),
187+
light_viewable=os.path.basename(saved_light_viewable_file_path),
187188
geode_object=geode_object,
188-
binary_light_viewable=binary_light_viewable.decode("utf-8"),
189189
input_files=additional_files or [],
190190
)
191191
session.add(data_entry)

0 commit comments

Comments
 (0)