Skip to content

Commit

Permalink
[fix] Fixed task process.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Aug 13, 2023
1 parent 892a5b1 commit 2f3e0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpnic_admin/resource/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ def search_list(self):

# addr_listを新規登録
addr_list_id = self.insert_addr_list(addr_info)
print("UPDATE_LATEST_DATA")
self.update_latest_data(handles=jpnic_handles)
for tech_handle in addr_info["tech_handle"]:
AddrListTechHandle(addr_list_id=addr_list_id, jpnic_handle=tech_handle).save()
Expand Down Expand Up @@ -748,6 +747,7 @@ def update_handle(self):
return

handle_info["recep_number"] = info["recept_no"]
self.update_latest_data(handles=[].append(handle_info))

def update_latest_data(self, handles=None):
last_handle = JPNICHandle.objects.filter(jpnic_id=self.base.id).order_by("-last_checked_at").first()
Expand Down

0 comments on commit 2f3e0b8

Please sign in to comment.