Griffith - media collection manager
May 17, 2012, 05:02:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New mailing lists,
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Date Added  (Read 1437 times)
kilroy
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« on: September 19, 2010, 06:12:17 PM »

Good day -
Does Griffith have a field in the database (I am using MySQL) for the date that a movie was added to the collection?

I run a Crystal report to create a paper file, of my movie collection, and it would be nice to have a recently added report, so that friends and visitors that come over, and stay, know that movies x, y, and z were added in the last 90 days or something?

Thanks
Andrew
Logged
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #1 on: September 20, 2010, 09:05:56 PM »

If you need it only for some reports you can try to add a custom timestamp column manually.
Look into the reference manual:
http://dev.mysql.com/doc/refman/5.1/en/timestamp.html
You can create a column which is only updated at insert or one that is updated with every insert and update commands.
This is done by the mysql server. No changes at griffith side.
Logged
kilroy
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #2 on: September 25, 2010, 02:53:00 AM »

Mike
You are wonderful, thank you - never thought about that.

Might be soemthing to add to a future release though, I doubt that I am the only one who could use it.

Thank you again.

Andrew
Logged
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #3 on: September 25, 2010, 09:23:17 PM »

Thx.  Grin

And you are right. There are some others who ask for it. I will think about it.
https://blueprints.launchpad.net/griffith/+spec/add-date
« Last Edit: September 25, 2010, 09:30:48 PM by mike » Logged
kilroy
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #4 on: December 10, 2010, 05:48:42 AM »

Hey Mike
I was just looking at the Mysql structure and it looks like there is a created and added date - Is this something that was added within the latest update?

Thanks
Logged
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #5 on: December 14, 2010, 10:19:42 PM »

Yes, the fields were added with version 0.12.
Logged
Simeon
Full Member
***
Offline Offline

Posts: 175


View Profile
« Reply #6 on: January 04, 2011, 10:34:28 PM »

A Suggestion:
Why is the one date (creation) deleted and the other one used once I changed something in the movie?
The creation date should remain what it is in my opinion as it could be used as an indicator when the DVD was bought.
Logged

Science is the belief in the ignorance of the experts - Richard P. Feynman
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #7 on: January 10, 2011, 09:50:57 PM »

You know it, it is a bug.  Sad

Fixed in rev. 1486
http://svn.berlios.de/svnroot/repos/griffith/trunk/lib/add.py
« Last Edit: January 10, 2011, 10:17:53 PM by mike » Logged
Simeon
Full Member
***
Offline Offline

Posts: 175


View Profile
« Reply #8 on: January 10, 2011, 10:54:04 PM »

Thanks Mike.
Logged

Science is the belief in the ignorance of the experts - Richard P. Feynman
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!