omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. NikkiSchwartzVB
    3. Best

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 43
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by NikkiSchwartzVB

    • RE: CSV to mmd table

      And soooooooo.....

      Here is a workflow for this step of my process. http://www.editorial-workflows.com/workflow/5771846762889216/xI4LXsctvGg

      The csv is exported from iOS Numbers into editorial. This workflow takes the file contents of that csv (which is default named Blank.csv) and converts it to a mmd table, adds borders in the HTML step. Replaces the csv text with the mmd table... and in the shared workflow outputs to a PDF file. I'll save that step until I'm done with the whole report.

      All python thanks to @ccc , who is effing fantastic.

      πŸ’ƒπŸ»πŸ•ΊπŸΌπŸ’₯πŸŒŸβœ¨πŸ’«πŸΎπŸ₯‚πŸŽ†πŸŽ‡πŸŽ‰

      posted in Editorial
      NikkiSchwartzVB
      NikkiSchwartzVB
    • RE: Conditional if then, with math, less than, greater than

      @dgelessus @ccc

      I finally made it work. You both will understand better than I. (Have I mentioned I have literally nearly zero experience coding... outside of things like Editorial and the Workflow app and copy and pasting some HTML stuff).

      That said. Someone throw a party!

      #coding: utf-8
      import datetime
      import workflow
      
      ymd = workflow.get_variable('DOB')
      year, month, day = ymd.split(',')
      delta_t = datetime.date.today() - datetime.date(int(year.strip()), int(month.strip()), int(day.strip()))
      age = int(delta_t.days / 365.2425)
      workflow.set_variable('age of client', str(age))
      workflow.set_output(str(age))
      
      posted in Editorial
      NikkiSchwartzVB
      NikkiSchwartzVB