feat: stop setting MeetingRegistration.attended on MeetEcho login. (#4526)
* feat: stop setting MeetingRegistration.attended on MeetEcho login. We capture attendence through MeetEcho using meeting.Attended now. * chore: remove unused import * chore: remove unused import
This commit is contained in:
parent
f043797742
commit
2058522a0c
|
@ -4,10 +4,7 @@
|
||||||
|
|
||||||
# various authentication and authorization utilities
|
# various authentication and authorization utilities
|
||||||
|
|
||||||
import datetime
|
|
||||||
|
|
||||||
import oidc_provider.lib.claims
|
import oidc_provider.lib.claims
|
||||||
from oidc_provider.models import Client as ClientRecord
|
|
||||||
|
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
@ -281,15 +278,6 @@ class OidcExtraScopeClaims(oidc_provider.lib.claims.ScopeClaims):
|
||||||
reg.save()
|
reg.save()
|
||||||
info = {}
|
info = {}
|
||||||
if regs:
|
if regs:
|
||||||
# maybe register attendance if logged in to follow a meeting
|
|
||||||
today = datetime.date.today()
|
|
||||||
if meeting.date <= today <= meeting.end_date():
|
|
||||||
client = ClientRecord.objects.get(client_id=self.client.client_id)
|
|
||||||
if client.name == 'Meetecho':
|
|
||||||
for reg in regs:
|
|
||||||
if not reg.attended:
|
|
||||||
reg.attended = True
|
|
||||||
reg.save()
|
|
||||||
# fill in info to return
|
# fill in info to return
|
||||||
ticket_types = set([])
|
ticket_types = set([])
|
||||||
reg_types = set([])
|
reg_types = set([])
|
||||||
|
|
Loading…
Reference in a new issue