Changeset 2393 for 2011


Ignore:
Timestamp:
2011-07-01 09:53:41 (12 years ago)
Author:
tekrjant
Message:

Pong-pelit saa piiloon raportista.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/write_report.py

    r2390 r2393  
    1616from datetime import * 
    1717import time 
     18import re 
    1819 
     20 
     21hide_pong_games = False 
    1922 
    2023report_location = "\\\\eppu.it.jyu.fi\\kurssit\\npo\\temp" 
     
    8487                    time_of_update = lines[3].strip() 
    8588 
     89                    if hide_pong_games and re.search("pong", name, flags=re.IGNORECASE): 
     90                            continue 
     91 
    8692                    success = (result == "success") 
    8793 
     
    102108 
    103109def main(): 
     110        if "--hide-pong" in sys.argv: 
     111                global hide_pong_games 
     112                hide_pong_games = True 
     113 
    104114        try: 
    105115                while True: 
Note: See TracChangeset for help on using the changeset viewer.