uszkodzone maile
This commit is contained in:
		
							
								
								
									
										6
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								app.py
									
									
									
									
									
								
							@@ -374,11 +374,10 @@ def main():
 | 
				
			|||||||
        user['email_valid'] = not is_fake_email(user['mail']) and not user['temp_email']
 | 
					        user['email_valid'] = not is_fake_email(user['mail']) and not user['temp_email']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if args.only_invalid_emails:
 | 
					        if args.only_invalid_emails:
 | 
				
			||||||
            # Nowy tryb: tylko użytkownicy z nieprawidłowymi e-mailami
 | 
					 | 
				
			||||||
            if not user['email_valid']:
 | 
					            if not user['email_valid']:
 | 
				
			||||||
                user['inactive'] = False  # nie oceniamy nieaktywności
 | 
					                user['inactive'] = True
 | 
				
			||||||
                final_candidates.append(user)
 | 
					                final_candidates.append(user)
 | 
				
			||||||
            continue  # pomijamy dalsze sprawdzanie
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Pomijanie aktywnych "weteranów"
 | 
					        # Pomijanie aktywnych "weteranów"
 | 
				
			||||||
        created_year = datetime.datetime.fromtimestamp(user['created']).year if user.get('created') else None
 | 
					        created_year = datetime.datetime.fromtimestamp(user['created']).year if user.get('created') else None
 | 
				
			||||||
@@ -407,6 +406,7 @@ def main():
 | 
				
			|||||||
    # Redundant safety filter to exclude any with points
 | 
					    # Redundant safety filter to exclude any with points
 | 
				
			||||||
    final_candidates = [u for u in final_candidates if (u.get('points') or 0) == 0]
 | 
					    final_candidates = [u for u in final_candidates if (u.get('points') or 0) == 0]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if args.report_domains:
 | 
					    if args.report_domains:
 | 
				
			||||||
        domain_report(final_candidates)
 | 
					        domain_report(final_candidates)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user