Wykres commitów

44 Commity (f24cb30c8212074acc28d2ae258ac21ea901c2a5)

Autor SHA1 Wiadomość Data
Christian T. Jacobs c993704e84 Make the code pep8 compliant, using the autopep8 tool. Note that we are ignoring the following: E501,F403,E226,E402,W503. 2016-01-27 16:23:09 +00:00
njohnsn fc94c8d511 Convert to Python 3 using 2to3.
Also update Travis CI settings for Python 3, add new package dependencies and update the documentation.
2015-11-05 00:23:19 +00:00
Christian Jacobs 45abb28e38 Improved docstrings. 2015-10-04 00:16:55 +01:00
Christian Jacobs bf26af984d Merge pull request #32 from dnet/cleanup2015930
Cleanup
2015-10-01 18:37:38 +01:00
Christian Jacobs 794d999587 lastrowid only gets set *after* issuing an INSERT statement, but PyQSO needs the index of the last row beforehand. Therefore, determine the index of the last row using a SELECT statement instead. 2015-10-01 18:27:11 +01:00
András Veres-Szentkirályi 500ca5977a removed unused imports 2015-09-30 10:56:56 +02:00
Christian Jacobs 37685c9a4c When calling add_record with multiple records in a list, insert all the records in one go using executemany.
This seems to bring a significant performance benefit, and addresses issue #29.
2015-08-12 00:58:00 +01:00
Christian Jacobs f9b97a6b26 Remove the unnecessary "File:" lines at the top of each .py file. 2015-03-06 23:35:14 +00:00
Christian Jacobs 3cc4f83a22 Added my middle initial. 2015-03-06 23:31:46 +00:00
Christian Jacobs 7b3c2634aa Move the code which locates duplicate records into a new method called 'get_duplicates'.
Also added a unit test for this new method.
2015-03-01 21:55:24 +00:00
Christian Jacobs 2d0e33ceb7 Perform extra passes to ensure that all duplicate records are removed. There might be a better way to do this. 2015-02-08 20:05:15 +00:00
Christian Jacobs 5c99387b40 More error handling. 2013-10-01 21:23:37 +01:00
Christian Jacobs ebc6d767aa More error handling. 2013-10-01 21:20:15 +01:00
Christian Jacobs 5eca6d4e68 More error handling and manual improvements. 2013-10-01 21:14:01 +01:00
Christian Jacobs 99ab2c3924 Added IndexError to the except line. 2013-09-30 17:52:01 +01:00
Christian Jacobs 18de3ce518 Removed an old print statement. 2013-09-30 17:03:08 +01:00
Christian Jacobs a3c3552f14 Using 'with' statements to deal with database commits and rollbacks. 2013-09-30 16:56:11 +01:00
Christian Jacobs 23b6557c54 Remove the "close" button in the log's tab. 2013-09-16 03:24:53 +01:00
Christian Jacobs e3f81fbfda Fixed a bug which occurred when searching for duplicate records in an empty log. 2013-09-16 03:17:37 +01:00
Christian Jacobs 9c09a728fc Unit tests for the ADIF and Log classes. 2013-09-16 02:39:32 +01:00
Christian Jacobs f260462072 Added commit and rollback statements. 2013-09-15 02:49:12 +01:00
Christian Jacobs 3b12614cc3 More exception handling. 2013-09-15 01:10:13 +01:00
Christian Jacobs fb884803e7 A few bug fixes. 2013-09-15 01:02:21 +01:00
Christian Jacobs 74fa770a05 Added a 'make unittest' command to the Makefile. 2013-09-15 00:21:58 +01:00
Christian Jacobs fa7788f49d Changed ''' to """. 2013-09-04 21:12:04 +01:00
Christian Jacobs bc4ae0e41a Added more docstrings. 2013-09-04 21:03:48 +01:00
Christian Jacobs 1e294c7e3a Some more improvements to backwards compatibility. 2013-07-05 00:26:34 +01:00
Christian Jacobs 5314c59b17 add_missing_db_columns is probably a better name for this method. 2013-07-04 23:58:02 +01:00
Christian Jacobs c6c0431617 Some more improvements to backwards compatibility. 2013-07-04 23:53:31 +01:00
Christian Jacobs 5cada62d02 - Improvements to backwards compatibility. PyQSO now adds a column with the field name to the database if it doesn't already exist. All entries are initially set to NULL. This prevents problems when the ListStore expects the column names to all be in AVAILABLE_FIELD_NAMES.
- Added a TODO file.
2013-07-04 23:04:31 +01:00
Christian Jacobs e79baec0bd Forget the idea about selected field names for now. Just use all available ADIF fields instead. 2013-06-23 17:31:27 +01:00
Christian Jacobs 6b2aefacf2 - Renamed the DATE and TIME fields to QSO_DATE and TIME_ON, respectively.
- Added icons to the menu items.
2013-05-19 21:11:23 +01:00
Christian Jacobs 27042d1b22 Added unit tests to check the 'edit record' and 'delete record' functionality. 2013-05-16 21:46:44 +01:00
Christian Jacobs d3a18e77f3 Added a unit test to check the add_record functionality. 2013-05-13 12:08:39 +01:00
Christian Jacobs 79687fb0d6 Fixed the ADIF import/export functionality. 2013-04-26 23:53:23 +01:00
Christian Jacobs 69b7fcba8f Removed import statement for the Record class (which no longer exists). 2013-04-22 20:39:33 +01:00
Christian Jacobs 604a4b1854 - Added SQL statements for adding, editing and deleting records.
- AUTOINCREMENT the primary key.
2013-04-22 14:37:21 +01:00
Christian Jacobs aaf86720d2 Update logbook information on the Summary page every time the logbook is modified. 2013-04-22 00:15:07 +01:00
Christian Jacobs d0246a3f2c - Added a "+" ("New Log") tab, and a "Delete Log" button after each tab's title.
- Added a new dialog so the user can enter the new log's name.
2013-04-16 23:53:24 +01:00
Christian Jacobs d13dc12cb3 PyQSO now accepts the database file name as a command line argument, and tries to connect to the database on start-up. 2013-04-15 02:37:02 +01:00
Christian Jacobs 06c7f225ea Removed the Record class. SQLite3 is now used to store the log records. 2013-04-14 15:50:50 +01:00
Christian Jacobs c8a9b29f3e Placing :memory: in quotes. 2013-04-14 15:35:17 +01:00
Christian Jacobs 2fb650f7ab Added create and destroy methods for the SQL database connection. 2013-04-14 15:18:46 +01:00
Christian Jacobs e409cf7475 Renamed src/ to pyqso/ 2013-03-30 20:50:20 +00:00