diff --git a/app.py b/app.py index fe311cd..0ea4698 100644 --- a/app.py +++ b/app.py @@ -55,7 +55,9 @@ def run(): if event_name not in settings.legu_to_sm_event: continue - if 'shoumeng' not in (data.get('owner_name') or ''): + # if 'shoumeng' not in (data.get('owner_name') or ''): + # continue + if 'shoumeng' not in data.get('owner_name') or 'smios' not in data.get('owner_name') or 'shouios' not in data.get('owner_name'): continue idx += 1 diff --git a/resend.py b/resend.py index 686b4af..5cff8d8 100644 --- a/resend.py +++ b/resend.py @@ -49,7 +49,7 @@ for i in range(len(dates) - 1): if event_name not in settings.legu_to_sm_event: continue - if 'shoumeng' not in data.get('owner_name'): + if 'shoumeng' not in data.get('owner_name') or 'smios' not in data.get('owner_name') or 'shouios' not in data.get('owner_name'): continue send_data = copy.deepcopy(settings.template_data)