Skip to content

Commit 572ea5d

Browse files
fix
1 parent 64a831e commit 572ea5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sreg.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def check(plugin, passport, passport_type):
2424
passport: username, email, phone
2525
passport_type: passport type
2626
'''
27-
if plugin["request"]["{}_url".format(passport_type)]:
28-
url = plugin["request"]["{}_url".format(passport_type)].format(passport)
27+
if plugin["request"]["{0}_url".format(passport_type)]:
28+
url = plugin["request"]["{0}_url".format(passport_type)]
2929
else:
3030
return
3131
app_name = plugin['information']['name']
@@ -46,7 +46,7 @@ def check(plugin, passport, passport_type):
4646
print inRed('\n[-] %s ::: %s\n' % (app_name, str(e)))
4747
return
4848
if judge_yes_keyword in content and judge_no_keyword not in content:
49-
print u"[{}] {}".format(category, ('%s (%s)' % (app_name, website)))
49+
print u"[{0}] {1}".format(category, ('%s (%s)' % (app_name, website)))
5050
icon = plugin['information']['icon']
5151
desc = plugin['information']['desc']
5252
output_add(category, app_name, website, passport, passport_type, icon, desc)
@@ -70,7 +70,7 @@ def check(plugin, passport, passport_type):
7070
print e, app_name
7171
return
7272
if judge_yes_keyword in content and judge_no_keyword not in content:
73-
print u"[{}] {}".format(category, ('%s (%s)' % (app_name, website)))
73+
print u"[{0}] {1}".format(category, ('%s (%s)' % (app_name, website)))
7474
icon = plugin['information']['icon']
7575
desc = plugin['information']['desc']
7676
output_add(category, app_name, website, passport, passport_type, icon, desc)
@@ -147,4 +147,4 @@ def main():
147147

148148

149149
if __name__ == '__main__':
150-
main()
150+
main()

0 commit comments

Comments
 (0)