Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit d069c6a

Browse files
committed
fix: fix crontab add error
1 parent a1e0b8b commit d069c6a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

covid19/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@
161161
# Setting of Crontab
162162
CRONJOBS = (
163163
# 每分钟抓取一次
164-
('*/1 * * * *', 'ncovapi.cron.crawl_dxy', [], {}, '>> %s/crontab.log' % LOGS_DIR)
164+
('*/1 * * * *', 'ncovapi.cron.crawl_dxy', [], {}, '>> %s/crontab.log' % LOGS_DIR),
165165
)
166166

ncovapi/serializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ class CountrySerializer(serializers.HyperlinkedModelSerializer):
124124
def to_representation(self, inst):
125125
data = super().to_representation(inst)
126126
incrVo = data.get('incrVo')
127-
print(incrVo)
128127
if incrVo:
129128
data['incrVo'] = json.loads(incrVo)
130129
return data

0 commit comments

Comments
 (0)