JamesNZL / notion-assignment-import

A free cross-browser extension to load Canvas assignments into Notion, with 8200+ unique users.
https://jamesnzl.xyz/notion-assignment-import
Other
36 stars 6 forks source link

Assignment without due dates are not being imported into Notion #251

Closed migszu closed 4 months ago

migszu commented 1 year ago

Screenshot 2023-09-07 210634

JamesNZL commented 1 year ago
JamesNZL commented 7 months ago

In the meantime, a workaround:

  1. Right click in the popup window, and click Inspect

  2. Go to the Console tab for the extension popup, and paste the following:

    await chrome.storage.local.set({
    savedAssignments: Object.fromEntries(
    Object.entries((await chrome.storage.local.get()).savedAssignments)
      .map(([key, value]) => [
        key,
        value.map(assignment => {
          if (assignment.due !== "1970-01-01T12:00:00.000Z") {
              return assignment;
          }
    
          console.log(`skipping ${assignment.name}`);
          assignment.due = "2024-12-12T12:00:00.000Z";
          return assignment;
        })
      ]),
    ),
    });
  3. Hit Enter

That will make all of your assignments that don't have due dates be imported into Notion as being due in December (right now, it's due in 1970, which is in the past, so it's ignored by the importer).

You can then click+drag (or shift+click) in Notion (probably easiest in a table view) to clear all of the placeholder due dates at once.