Commits

Anonymous committed b5c885d

minor cleanup

  • Participants
  • Parent commits 720c239

Comments (0)

Files changed (1)

     >>> list(sites)
     [{'path': '/Infinite_Hands/2/', 'description': 'singing a part of the history of free software.', 'randomint': 5}, {'path': '/Infinite_Hands/-1/', 'description': 'singing a part of the history of free software.'}, {'description': 'singing a part of the history of free software.'}]
 
-
     """
     # make sure the data folders exist.
     if not isdir(sites_dir):
     # nothing in this section may break the script, else the lock stays put.
     try:
         if action == "put": 
-            _put_data_for_key(key, subkey, site, state, sites_dir=sites_dir, states_dir=states_dir, path_from_key=path_from_key)
+            _put_data_for_key(key, subkey, site=site, state=state, sites_dir=sites_dir, states_dir=states_dir, path_from_key=path_from_key)
         elif action == "remove":
-            _remove_data_for_key(key, subkey, site, state, sites_dir=sites_dir, states_dir=states_dir, path_from_key=path_from_key)
+            _remove_data_for_key(key, subkey, site=site, state=state, sites_dir=sites_dir, states_dir=states_dir, path_from_key=path_from_key)
         else: print("Unknown action")
     except IOError:
         print("Couldn’t store the updated data. Dataset discarded.")