mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
跟随学校升级二升级部分代码,目前无法突破CF二代盾,暂无法签到
This commit is contained in:
@@ -369,8 +369,9 @@ def do_update(request):
|
||||
try:
|
||||
logger.info('开始更新')
|
||||
bt_school = Site.objects.filter(url=' http://47.242.110.63/').first()
|
||||
bt_school.url = 'https://pt.btschool.club/'
|
||||
bt_school.save()
|
||||
if not bt_school:
|
||||
bt_school.url = 'https://pt.btschool.club/'
|
||||
bt_school.save()
|
||||
pt_site_site_mtime = os.stat('pt_site_site.json').st_mtime
|
||||
requirements_mtime = os.stat('requirements.txt').st_mtime
|
||||
update_commands = {
|
||||
|
||||
Reference in New Issue
Block a user