Commits

Takafumi Arakaki  committed de5b8d5

Effort_ALL -> Effort (this is property name)

  • Participants
  • Parent commits 70f623d

Comments (0)

Files changed (3)

     if prop_srch:
         prop_key = prop_srch.group(1)
         prop_val = prop_srch.group(2)
-        if prop_key == 'Effort_ALL':
+        if prop_key == 'Effort':
             (h, m) = prop_val.split(":", 2)
             if h.isdigit() and m.isdigit():
                 prop_val = int(h)*60 + int(m)

File test/data_01.org

 * Heading
   SCHEDULED: <2010-08-06 Fri> DEADLINE: <2010-08-10 Tue>
   :PROPERTIES:
-  :Effort_ALL: 1:10
+  :Effort: 1:10
   :END:
   - <2010-08-16 Mon> DateList
   - <2010-08-07 Sat>--<2010-08-08 Sun>

File test/data_01.py

     dict(Heading = "Heading",
          Scheduled = date(2010, 8, 6),
          Deadline = date(2010, 8, 10),
-         Properties = dict(Effort_ALL=70),
+         Properties = dict(Effort=70),
          DateList = [date(2010, 8, 16)],
          RangeList = [
              (date(2010, 8, 7), date(2010, 8, 8)),