당직근무 0.15.3 (웹 2026-11-25.7): 일반근무 이름 한 칸 빼기

0.14.2에 넣은 일반근무 이름(일반근무 전체를 이름 하나로 바꾸기)은 요청을 잘못 알아들어 만든 기능이다.
사용자가 원한 것은 내 당직 기준 +1(비번)부터 근무마다 다른 사람 이름을 넣는 근무 순서 이름(0.15.0)이다.

- 앱 옵션 → 달력 표시와 웹 옵션에서 일반근무 이름 칸을 뺐다. 일반근무 글자 숨기기는 그대로다.
- 이미 저장된 regularName 값은 앱·웹·구독 제목 어디에도 쓰지 않는다. 서버는 옛 앱이 보내는 값을 받아 보관만 한다.
- 관리자 기본값 defaultRegularName을 뺐다.
- 앱 0.15.3 / 설치 번호 27. APK 875910바이트, SHA-256 eec32492c43f34b45148308793213d3a55661ccd70bc69a6e9bce020787a10a6
This commit is contained in:
블리어 committed 2026-11-25 03:46:26 +00:00
1 parent 5574172a1a
commit 1777ea4b1e
19 files changed
+49 -68

No files matched your search

+2 -3
View File
@@ -65,9 +65,8 @@ def project(state,chosen,today,holidays):
for person in (state.get('company') or {}).get('members',[]):
if not person['isSelf'] and person.get('rotation'):people['company:'+person['id']]={**person['rotation'],'name':person['name']}
rules=[item['data'] for item in items if item['kind']=='name_rule'];output={}
# 회원이 일반근무 이름을 바꿨으면 구독 제목도 그 이름을 쓴다. 근무 계산은 식별자로 하므로 바뀌지 않는다.
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
# '일반근무 이름 한 개'(regularName)는 0.15.3에서 껐다. 저장된 값이 있어도 제목에 쓰지 않는다.
labels=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):