File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,6 @@ def now(update: Update, context: CallbackContext):
22
22
chat = update .effective_chat
23
23
message = update .effective_message
24
24
25
- if not chat .type == "private" :
26
- available_vsps = "\n " .join ([subject .header for
27
- subject in Subject .objects .all ()])
28
- message .reply_text (f"{ GROUP_RESTRICTED } { CALL_NOW } " ,
29
- parse_mode = 'MARKDOWN' )
30
- message .reply_text (f"<b>Available VSP's are:</b>\n \n { available_vsps } " ,
31
- parse_mode = 'HTML' )
32
- return
33
-
34
25
try :
35
26
observer = UserObserver .objects .get (chat_id = f"{ chat .id } " )
36
27
except DoesNotExist :
@@ -52,6 +43,14 @@ def now(update: Update, context: CallbackContext):
52
43
errors .append (f"{ e } \n "
53
44
f"The value { name } returned more than "
54
45
f"one subject. Please be more specific!" )
46
+ elif not chat .type == "private" :
47
+ available_vsps = "\n " .join ([subject .header for
48
+ subject in Subject .objects .all ()])
49
+ message .reply_text (f"{ GROUP_RESTRICTED } { CALL_NOW } " ,
50
+ parse_mode = 'MARKDOWN' )
51
+ message .reply_text (f"<b>Available VSP's are:</b>\n \n { available_vsps } " ,
52
+ parse_mode = 'HTML' )
53
+ return
55
54
else :
56
55
subjects = Subject .objects .all ()
57
56
You can’t perform that action at this time.
0 commit comments