당직근무 0.15.0 (웹 2026-11-25.4): 근무 순서 이름
- 옵션 → 근무 순서 이름: 당직 다음 날(비번)부터 순서 자리마다 그날 당직 서는 사람 이름. 근무 종류는 글자로만 보이고 당직 기초 설정 화면은 그대로 - 달력에 보일 것: 근무와 이름 둘 다 · 이름만 · 근무만(nameDisplay). 앱 달력·위젯·근무표 그림, 웹 달력·그림, 기본 달력 반영과 구독 제목 - 근무표 names(순서와 같은 길이) 저장·검사, 구버전 저장 때 보존, 소속 공유 제외. 날짜별 변경 날은 이름 없음 - 앱 0.15.0 / 설치 번호 24. APK 875878바이트, SHA-256 22f4070a33d0d4c553f0391cb13f473dbec73d2174ba7a5e653318b394c3c55e - 검사: 서버 106개, 앱 단위 59개, 웹 이름 계산, 위젯 기기 검사(세 가지 표시)
This commit is contained in:
1 parent
6c77fc998c
commit
8c455f4448
32 files changed
+432
-58
No files matched your search
@@ -10,7 +10,7 @@ import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
from work_names import name_matches
|
||||
from work_plan import shift as plan_shift
|
||||
from work_plan import shift as plan_shift, name_on
|
||||
|
||||
OPTIONS=('rotation','events','anniversaries','names','notes')
|
||||
LABELS={'DUTY':'당직','OFF':'비번','REGULAR':'일반근무','DAY':'주간','EVENING':'오후','NIGHT':'야간','REST':'휴무','LEAVE':'연차·휴가','SICK':'병가','TRAINING':'교육','ANNUAL_LEAVE':'연차','MONTHLY_LEAVE':'월차','VACATION':'일반휴가','OFFICIAL_LEAVE':'공가','FAMILY_LEAVE':'경조휴가'}
|
||||
@@ -68,6 +68,8 @@ def project(state,chosen,today,holidays):
|
||||
# 회원이 일반근무 이름을 바꿨으면 구독 제목도 그 이름을 쓴다. 근무 계산은 식별자로 하므로 바뀌지 않는다.
|
||||
regular=next((item['data'].get('regularName') for item in items if item['kind']=='preferences'),'')
|
||||
labels={**LABELS,'REGULAR':regular} if isinstance(regular,str) and regular.strip() else LABELS
|
||||
# 근무 순서에 넣은 이름은 회원이 고른 표시 방법(근무만 · 이름만 · 둘 다)을 따른다.
|
||||
mode=next((item['data'].get('nameDisplay') for item in items if item['kind']=='preferences'),None) or 'both'
|
||||
def put(key,title,notes,start,end,all_day):
|
||||
output[key]={'key':key,'title':title,'notes':notes,'start':start,'end':end,'allDay':all_day}
|
||||
if len(output)>10000:raise ValueError('내보낼 일정이 10,000개를 넘습니다. 선택 항목을 줄여 주세요.')
|
||||
@@ -82,7 +84,9 @@ def project(state,chosen,today,holidays):
|
||||
if name_matches(rule,day,own,holiday,shift(person,day) if person else None):
|
||||
name=person['name'] if rule['mode']=='PERSON' else rule['name']
|
||||
if name not in names:names.append(name)
|
||||
put('rotation:'+day.isoformat(),labels[own]+(' · '+' · '.join(names) if names else ''),'',day,day+timedelta(days=1),True)
|
||||
slot=name_on(rotation,day)
|
||||
title=labels[own] if not slot or mode=='shift' else slot if mode=='name' else labels[own]+' · '+slot
|
||||
put('rotation:'+day.isoformat(),title+(' · '+' · '.join(names) if names else ''),'',day,day+timedelta(days=1),True)
|
||||
if chosen['anniversaries']:
|
||||
for item in items:
|
||||
d=item['data']
|
||||
|
||||
Reference in new issue
Block a user