Skip to content

Change config hash to use pprint#1411

Merged
cvium merged 6 commits intoFlexget:developfrom
cvium:config_hash
Sep 18, 2016
Merged

Change config hash to use pprint#1411
cvium merged 6 commits intoFlexget:developfrom
cvium:config_hash

Conversation

@cvium
Copy link
Copy Markdown
Contributor

@cvium cvium commented Sep 18, 2016

Motivation for changes:

Current method for hashing the config falls apart when the config is nested dicts.

Detailed changes:

  • Changed it to use pprint.pformat

Related issues

flexget/task.py Outdated
from flexget.utils.cached_input import get_config_hash
from flexget.utils.database import with_session
from flexget.utils.simple_persistence import SimpleTaskPersistence
from flexget.utils.tools import merge_dict_from_to
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't your name but can we change merge_dict_from_to to something like dict_merge? that name is horrible

Copy link
Copy Markdown
Member

@gazpachoking gazpachoking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@cvium cvium merged commit fdcfce0 into Flexget:develop Sep 18, 2016
@cvium cvium deleted the config_hash branch September 18, 2016 14:09
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.

3 participants