Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: seolmin <[email protected]>
  • Loading branch information
stat-kwon committed Dec 11, 2024
1 parent 6ddfc6e commit 934c636
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ def response(self, sort: list = None, page: dict = None) -> dict:
if page:
self.apply_page(page)

df = self.df.copy(deep=True)
self.df = None

return {
"results": self.df.to_dict(orient="records"),
"results": df.to_dict(orient="records"),
"total_count": total_count,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ def load(
self.error_message = e.message if hasattr(e, "message") else str(e)
_LOGGER.error(f"[load] add {self.source_type} source error: {e}")

df = self.df.copy(deep=True)
self.df = None
return df
return self.df

def _analyze_asset(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ def load(
self.error_message = e.message if hasattr(e, "message") else str(e)
_LOGGER.error(f"[load] {self.operator} operation error: {e}")

df = self.df.copy(deep=True)
self.df = None
return df
return self.df

def join_data_tables(
self,
Expand Down

0 comments on commit 934c636

Please sign in to comment.