HinaCortus commited on
Commit
ea241b1
1 Parent(s): b7ae21f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -55,13 +55,14 @@ def whichsocial(request):
55
  website = "ok"
56
  listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
57
  'reddit', 'picterest', 'discord', '']
58
- for part in request.split('/'):
59
- for socialnetwork in listsocialnetwork:
60
- print(socialnetwork, part)
61
- if socialnetwork == request:
62
- socialnetwork = socialnetwork
63
- else:
64
- socialnetwork = "not found"
 
65
  else:
66
  website = "it's not a website link !"
67
  userprofile = 'me'
 
55
  website = "ok"
56
  listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
57
  'reddit', 'picterest', 'discord', '']
58
+ for partsplit in request.split('/'):
59
+ for part in partsplit:
60
+ for socialnetwork in listsocialnetwork:
61
+ print(socialnetwork, part)
62
+ if socialnetwork == request:
63
+ socialnetwork = socialnetwork
64
+ else:
65
+ socialnetwork = "not found"
66
  else:
67
  website = "it's not a website link !"
68
  userprofile = 'me'