Page 1 of 1

user_date_id: anyone know what this is?

Posted: Sun Feb 23, 2014 10:39 pm
by kabirrkhan
I'm writing a quick pygtk-psycopg2 application to punch people in and out. The punch and punch_control tables are fairly straight forward except for the punch_control.user_date_id column

Anyone know what this is exactly or how its generated?

Re: user_date_id: anyone know what this is?

Posted: Mon Feb 24, 2014 3:51 pm
by shaunw
If you are trying to write data directly to the database you are doing it wrong, you should use the API instead as it will do all the heavy lifting (including dealing with punch_control records) for you.

Re: user_date_id: anyone know what this is?

Posted: Mon Feb 24, 2014 4:29 pm
by kabirrkhan
I don't think there is an API for python.

Re: user_date_id: anyone know what this is?

Posted: Tue Feb 25, 2014 4:22 pm
by shaunw
TimeTrex's API works with SOAP and JSON (similar to REST), so it works from any language, including Javascript.