Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command line export #375

Merged
merged 7 commits into from Jan 12, 2019
Merged

Conversation

ederag
Copy link
Collaborator

@ederag ederag commented Jan 10, 2019

The first commit (905d83b) was already prepared and used in export.
The next two commits (8b166c4 and 45c5e87) did fix issue #373.

This removes the ReportWriter.export function in reports.py
that was no longer used in hamster.
Since it lead to ValueError: I/O operation on closed file anyway,
it was removed altogether.

Now Fact.delta is calculated upon access.
This fixes durations that were not updated in the overview
for the running activity.
No longer used in hamster. And could lead to
ValueError: I/O operation on closed file
Fix TSV export
    return end_time - self.start_time
TypeError: unsupported operand type(s) for -: 'str' and 'str'
@ederag ederag added this to the v2.2 milestone Jan 10, 2019
setAttribute expects strings, otherwise
  File "/usr/lib64/python3.6/xml/dom/minidom.py", line 305, in _write_data
    data = data.replace("&", "&amp;").replace("<", "&lt;"). \
TypeError: an integer is required (got type str)
@ederag ederag changed the title Fix command line export (issue #373) Fix command line export Jan 12, 2019
@ederag ederag merged commit 2be328f into projecthamster:master Jan 12, 2019
@ederag ederag deleted the fix_cmdline_export branch January 12, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant