Skip to content

Commit

Permalink
[update] Updated library.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Jun 4, 2024
1 parent ccb21de commit e4752dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions jpnic_admin/info/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
from django.conf import settings


class Data(AppConfig):
class Info(AppConfig):
name = "jpnic_admin.info"
verbose_name = "アドレス資源"

def __init__(self, app_name, app_module):
super().__init__(app_name, app_module)
self.scheduler = None

def ready(self):
try:
Expand Down Expand Up @@ -45,21 +46,21 @@ def notice_etc(self):
def get_addr_process(self):
from .task import get_task

self.scheduler.pause_job("get_addr")
self.scheduler.get_job("get_addr").pause()
try:
get_task(type1="アドレス情報")
except:
print("ERROR: get_addr_process")
pass
self.scheduler.resume_job("get_addr")
self.scheduler.get_job("get_addr").resume()

def get_resource_process(self):
from .task import get_task

self.scheduler.pause_job("get_resource")
self.scheduler.get_job("get_resource").pause()
try:
get_task(type1="資源情報")
except:
print("ERROR: get_resource_process")
pass
self.scheduler.resume_job("get_resource")
self.scheduler.get_job("get_resource").resume()
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
APScheduler==3.10.4
asgiref==3.8.1
beautifulsoup4==4.12.3
certifi==2024.2.2
certifi==2024.6.2
cffi==1.16.0
charset-normalizer==3.3.2
cryptography==42.0.7
decorator==5.1.1
defusedxml==0.7.1
Django==5.0.6
django-configurations==2.5.1
django-debug-toolbar==4.3.0
django-debug-toolbar==4.4.2
django-mathfilters==1.0.0
django-tidb==5.0.0
django-widget-tweaks==1.5.0
Expand All @@ -24,7 +24,7 @@ inflection==0.5.1
isodate==0.6.1
lxml==5.2.2
mysqlclient==2.2.4
openpyxl==3.1.2
openpyxl==3.1.3
packaging==24.0
pycparser==2.22
pyOpenSSL==24.1.0
Expand All @@ -34,7 +34,7 @@ python3-saml==1.16.0
pytz==2024.1
pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0.1
requests==2.31.0
requests==2.32.3
self==2020.12.3
six==1.16.0
slack_sdk==3.27.2
Expand Down

0 comments on commit e4752dd

Please sign in to comment.