fix: joj3-check-env group match
This commit is contained in:
		
							parent
							
								
									30e6d5aaeb
								
							
						
					
					
						commit
						96a3d20312
					
				|  | @ -356,15 +356,10 @@ class Teapot: | ||||||
|                 f"time period={time_period} hour(s), " |                 f"time period={time_period} hour(s), " | ||||||
|                 f"max count={max_count}, submit count={submit_count}" |                 f"max count={max_count}, submit count={submit_count}" | ||||||
|             ) |             ) | ||||||
|             use_group = False |             use_group = True | ||||||
|             if name: |             if name: | ||||||
|                 comment += f"keyword `{name}` " |                 comment += f"keyword `{name}` " | ||||||
|                 for group in env.joj3_groups or "": |                 use_group = name.lower() in env.joj3_groups.lower() | ||||||
|                     if group.lower() == name.lower(): |  | ||||||
|                         use_group = True |  | ||||||
|                         break |  | ||||||
|             else: |  | ||||||
|                 use_group = True |  | ||||||
|             comment += ( |             comment += ( | ||||||
|                 f"in last {time_period} hour(s): " |                 f"in last {time_period} hour(s): " | ||||||
|                 f"submit count {submit_count}, " |                 f"submit count {submit_count}, " | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user