HinaCortus commited on
Commit
dd7c4ba
·
1 Parent(s): c777dd7

Update app.py

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