Skip to content

hupantingxue/overtimecnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

overtimecnt

statistics overtime days per month

Usage

Using your database engines admin interface, create a simple table in your database:


"CREATE TABLE `overtime` (
  `month` varchar(11) DEFAULT '',
  `day` varchar(11) DEFAULT '',
  `overtime` tinyint(1) DEFAULT '0',
   PRIMARY KEY (`day`)
) ENGINE=MyISAM DEFAULT CHARSET=latin;"

And an initial row:


insert into overtime (month, day, overtime) values('201402', '20140201', 0);

Return to overtime.py to change the datebase config, while the forsae branch you do not need to change it.


db = web.database(dbn='mysql', user='db_user', pw='db_pwd', db='db_dbname')

The value of the overtime in database is 0 means "work normal" whereas 1 means "work overtime".

Run server:


python overtime.py  port

Author

hupantingxue

License

Apache 2.0

About

statistics overtime days per month

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages