semperai / effectiveacceleration.ai

https://effectiveacceleration-ai.vercel.app
0 stars 1 forks source link

max job time shown on job details does not specify units #20

Closed kasumi-1 closed 2 days ago

jojedev commented 3 days ago

Right now we're not able to store the time units on the contract. I'm asking pat his opinion on this, I tought in a crafty solution like storing the deadline number with a decimal and with the decimal we could know the time unit. for ex. days: 00.1 weeks: 00.2 months: 00.3. etc

kasumi-1 commented 2 days ago

we should just use seconds like the contract, and pretty print it, ie convert from 23442 seconds to 2 days, 16 hours

jojedev commented 2 days ago

I also added the maxtime on the job details when job is on open state, this example was succesfully done creating a new job, storing seconds and then pretty printing it on job details.

image

https://github.com/semperai/effectiveacceleration.ai/commit/dd89ac2fcf4cceefbd3a27488757b5344de30e76