backup
This commit is contained in:
@ -8,22 +8,21 @@ import os
|
||||
url = "https://northpass.atlassian.net/wiki/rest/api/content/"
|
||||
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
|
||||
|
||||
rootdir = "~/Documents/Northpass/CustomerNotes/"
|
||||
|
||||
rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
|
||||
|
||||
def getCompany():
|
||||
rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
|
||||
rootdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Confluence_Notes/SampleNotes/"
|
||||
companyName = os.listdir(rootdir)
|
||||
for fileName in companyName:
|
||||
company = fileName[:-3]
|
||||
getPages(company)
|
||||
|
||||
def readNewNotes(company):
|
||||
rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
|
||||
rootdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Confluence_Notes/SampleNotes/"
|
||||
with open(rootdir+company+".md", "r") as companyfile:
|
||||
notes = companyfile.readlines()
|
||||
createNewPage(company, notes)
|
||||
print(notes)
|
||||
notes = companyfile.read()
|
||||
conversion = markdown.markdown(notes)
|
||||
createNewPage(company, conversion)
|
||||
|
||||
def getPages(company):
|
||||
headers = {
|
||||
@ -43,8 +42,7 @@ def getPages(company):
|
||||
print(f"{company} not found. Create new page...")
|
||||
readNewNotes(company)
|
||||
|
||||
def createNewPage(company="Example",
|
||||
notes="h1. 10/06/2022\n', '* Cami and Soner to pull their own analytics \n', '* Unsure what those key metrics are\n', '* However, they currently look at:\n', ' * Completion % of courses\n', ' * Number of completed courses \n', '* Planning needs to happen about what those analytics are \n', '* Main priorities, cateogries, ensure the front end is Flinky, \n', '* Reduce banner slightly, Cami to send a picture of what she wants\n', '* They want to launch ASAP, but need to find a window that works best\n', '* Wednesdays are generally slow and could be a good transfer day\n', '* Wednesday 10/19 - tentative \n', '\n'"):
|
||||
def createNewPage(company, notes):
|
||||
url = "https://northpass.atlassian.net/wiki/rest/api/content/"
|
||||
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
|
||||
headers = {
|
||||
|
||||
Reference in New Issue
Block a user