Ignore:
Timestamp:
Apr 15, 2011, 9:12:38 PM (14 years ago)
Author:
rick
Message:

Parse the right argument, shall we ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/random_db_init.py

    r9055 r9056  
    5454if __name__ == "__main__":
    5555  # Awefull hack for argument parsing
    56   count = int(sys.argv[0]) if len(sys.argv) > 1 else 10000
     56  count = int(sys.argv[1]) if len(sys.argv) > 1 else 10000
    5757  add_random_measurements(count)
    5858
Note: See TracChangeset for help on using the changeset viewer.