omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    contacts module - updates to contacts don't immediately show up

    Pythonista
    1
    1
    1074
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bitbucket158
      bitbucket158 last edited by

      Was playing around with the contacts module via Pythonista over the weekend and noticed the following. If you read the modification_date field in a contact to determine when that contact has changed, you won't see updates to the contacts immediately.

      For example, if you run your script and have it print out the modification_date field for a contact, then switch to your contacts and make a change, then switch back to pythonista and run your script again, the modification_date is unchanged.

      You have to terminate Pythonista (remove it from memory) and then run it again. Once you do this, the modification_date shows the updated value.

      It appears that Pythonista may be caching this or is not being notified or is not aware of modifications to contacts while its running (not while a script is running but while Pythonista itself is running).

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors