emacs/var/org/persist/02/d81c63-404c-4b88-bf9d-cde2922c8de6
2022-01-03 12:49:32 -06:00

1 line
4.4 KiB
Plaintext

((org-element--headline-cache . #s(avl-tree- [[[nil nil #4=(headline (:raw-value #1="Seatable" :begin 128 :end 1366 :pre-blank 0 :contents-begin 139 :contents-end 1366 :robust-begin 141 :robust-end 1364 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 128 :title #1# :mode nil :granularity element :cached t :parent #6=(org-data (:begin 1 :contents-begin 1 :contents-end 1366 :end 1366 :robust-begin 53 :robust-end 1364 :post-blank 0 :post-affiliated 1 :path "/home/chris/org/seatable.org" :mode org-data :ID "20211209T173154.877984" :CATEGORY "seatable" :cached t :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) 0] [nil nil #8=(headline (:raw-value #2="Tasks" :begin 232 :end 1366 :pre-blank 0 :contents-begin 242 :contents-end 1366 :robust-begin 244 :robust-end 1364 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 232 :title #2# :mode section :granularity element :cached t :parent #5=(headline (:raw-value #3="Scripts" :begin 221 :end 1366 :pre-blank 0 :contents-begin 232 :contents-end 1366 :robust-begin 234 :robust-end 1364 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 221 :title #3# :mode nil :granularity element :cached t :parent #4# :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) 0] #5# 0] nil nil 0] org-element--cache-compare)) (org-element--cache . #s(avl-tree- [[[[nil nil #6# 0] [nil nil (property-drawer (:begin 1 :end 54 :contents-begin 14 :contents-end 48 :post-blank 0 :post-affiliated 1 :mode top-comment :granularity element :cached t :parent #7=(section (:begin 1 :end 128 :contents-begin 1 :contents-end 127 :robust-begin 1 :robust-end 125 :post-blank 1 :post-affiliated 1 :mode first-section :granularity element :cached t :parent #6# :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) 0] #7# 0] [[[nil nil #4# 0] [nil nil #5# 0] (section (:begin 139 :end 221 :contents-begin 139 :contents-end 220 :robust-begin 139 :robust-end 218 :post-blank 1 :post-affiliated 139 :mode section :granularity element :cached t :parent #4# :org-element--cache-sync-key nil)) 0] [[nil nil #9=(section (:begin 242 :end 1366 :contents-begin 242 :contents-end 1366 :robust-begin 242 :robust-end 1364 :post-blank 0 :post-affiliated 242 :mode section :granularity element :cached t :parent #8# :org-element--cache-sync-key nil)) 0] [nil nil (src-block (:language "javascript" :switches nil :parameters nil :begin 302 :end 1366 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "const currentRow = base.context.currentRow;\12const table = base.getTableByName('todo');\12\12console.log(currentRow);\12\12const repeat = currentRow['will-repeat'];\12const rowId = currentRow['_id'];\12const startDate = currentRow['start-date'];\12const endDate = currentRow['end-date'];\12const repeater = currentRow['repeater'];\12\12console.log(rowId);\12console.log(repeater);\12\12// Mark the task as done\12base.modifyRow(table, currentRow, {['progress']: 'done'});\12\12// Check to see if this task will repeat\12if (repeat = 'yes') {\12 // Check to see which repeater was chosen\12 // and repeat based on that criteria\12 switch(repeater) {\12 case \"anually\":\12 var thisYear = getFullYear(startDate);\12 var nextYear = startDate.setFullYear(thisYear + 1);\12 base.modifyRow(table, currentRow {['start-date']: ''});\12 break;\12 case \"monthly\":\12 \12 break;\12 case \"weekly\":\12 \12 break;\12 case \"daily\":\12 \12 break;\12 case \"hourly\":\12 \12 break;\12 default:\12 break;\12 }\12}\12" :post-blank 0 :post-affiliated 302 :mode nil :granularity element :cached t :parent #9# :org-element--cache-sync-key nil)) 0] (paragraph (:begin 242 :end 302 :contents-begin 242 :contents-end 301 :post-blank 1 :post-affiliated 242 :mode planning :granularity element :cached t :parent #9# :org-element--cache-sync-key nil)) 0] #8# 0] (keyword (:key "TITLE" :value "Seatable" :begin 54 :end 72 :post-blank 0 :post-affiliated 54 :mode nil :granularity element :cached t :parent #7# :org-element--cache-sync-key nil)) 1] nil nil 0] org-element--cache-compare)))