sync: auto-sync from HOWARD-HOME at 2026-07-03 23:31:28

Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-07-03 23:31:28
This commit is contained in:
2026-07-03 23:31:53 -07:00
parent e71a486db2
commit fad05480a5
3 changed files with 20 additions and 2 deletions

View File

@@ -32,8 +32,11 @@ def dtype(h,os_):
return "Desktop"
DEPT=[("ACCT","Accounting"),("NURSE","Nursing"),("MFGR","Manufacturing"),("MFG","Manufacturing"),
("RCVG","Receiving"),("QCINSP","Quality"),("PROQC","Quality"),("QC","Quality"),("MAINT","Maintenance"),
("RECEPT","Reception"),("SHIP","Shipping"),("CHEF","Dietary"),("MEMRECEPT","Memory Care"),
("MDIRECTOR","Memory Care"),("SALES","Sales/Marketing"),("CONF","Conference"),("ENGI","Engineering")]
("MEMRECEPT","Memory Care"),("MDIRECTOR","Memory Care"),("RECEPT","Reception"),("FRONTDESK","Front Desk"),
("FRONT","Front Desk"),("SHIPPING","Shipping"),("SHIP","Shipping"),("CHEF","Dietary"),("KITCHEN","Dietary"),
("SALES","Sales/Marketing"),("MARKETING","Marketing"),("ESTIMAT","Estimating"),("WAREHOUSE","Warehouse"),
("WHSE","Warehouse"),("DISPATCH","Dispatch"),("PAYROLL","Payroll"),("BILLING","Billing"),
("ADMIN","Administration"),("CONF","Conference"),("ENGI","Engineering"),("LOBBY","Lobby")]
def dept(h):
u=h.upper()
for pat,d in DEPT:
@@ -59,6 +62,7 @@ for c in sorted(targets):
if maj and maj!=canon and not maj.strip()==canon: flags.append(f"{c}: '{maj}' -> '{canon}'")
cc=dtc=dpc=0
for h,(a,ss) in sess.items():
if len(ss)>1: continue # ambiguous: name shared across clients OR a within-client dup -> never auto-write (would cross-contaminate). Handle by-hand.
dt=dtype(h,a.get("os_type","")); dp=dept(h)
for s in ss:
cur=list(s.get("CustomPropertyValues") or [])