Skip to content

Commit 84cbfa4

Browse files
authored
Merge pull request #96 from hanjo8813/feature/v2.3.2
Feature/v2.3.2
2 parents 80f41ec + 6ddab8a commit 84cbfa4

12 files changed

Lines changed: 176 additions & 80 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ PG.sock
99
cmd
1010

1111
admin
12-
.env
12+
.env
13+
14+
.DS_Store

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Please Graduate
22

3-
![since](https://img.shields.io/badge/since-2021.01-a3374f) ![pg](https://img.shields.io/badge/version-2.3.1-a3374f)
3+
![since](https://img.shields.io/badge/since-2021.01-a3374f) ![pg](https://img.shields.io/badge/version-2.3.2-a3374f)
44

55
## 관련 링크
66

77
<table >
88
<tr>
9-
<td width="600" align='center'>사이트 링크 <br> https://www.please-graduate.com/</td>
9+
<td width="600" align='center'>사이트 링크 <br> https://please-graduate.com/</td>
1010
<td width="600" align='center'><a href="/dev_record.md">개발일지 / 업데이트 기록</a></td>
1111
</tr>
1212
</table>
@@ -187,17 +187,5 @@
187187
- 프론트엔드는 Django Template Engine을 사용해 SSR 방식으로 렌더링합니다.
188188
- 일일 방문자수 구현을 위해 django-crontab을 사용합니다.
189189

190-
<br>
191-
192-
## 📁 DB 구조
193-
194-
<image width="550" src="https://user-images.githubusercontent.com/71180414/125682617-94fcf596-7722-4d75-8f6a-a4199b98a859.png">
195-
196-
- 각 과목은 고유한 **학수번호**(PK)를 통해 구분됩니다.
197-
- `all_lecture` : 매학기 학교에서 제공하는 개설과목 엑셀 5개년치를 Dataframe으로 병합, 중복제거 후 저장한 모든 과목 정보 테이블
198-
- `new_lecture` : 최근 1년 내 개설된 학기 강의들의 학수번호 리스트 테이블
199-
- `subject_group` : 동일과목이 존재할 경우 그룹번호와 학수번호를 매핑해주는 테이블
200-
- `standard` : 학과 - 학번별 모든 경우의 졸업 기준을 저장하는 테이블
201-
202190

203191
<br>

app/templates/admin_home.html

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{% extends 'reference.html' %}
2+
3+
{% block content %}
4+
5+
<style>
6+
.admin_container {
7+
text-align: center;
8+
margin: 100px 100px;
9+
}
10+
11+
.admin_table {
12+
margin: 0 auto;
13+
}
14+
15+
.admin_table th,
16+
td {
17+
border: 1px solid #dadada;
18+
padding: 3px 6px 3px 6px;
19+
}
20+
</style>
21+
22+
23+
<div class="admin_container">
24+
25+
<table class="admin_table">
26+
<tr>
27+
<th>함수명</th>
28+
<th>설명</th>
29+
<th>실행</th>
30+
</tr>
31+
<tr>
32+
<td>f_test</td>
33+
<td>콘솔 테스트</td>
34+
<td><button onclick="run('/f_test/')">실행</button></td>
35+
</tr>
36+
<tr>
37+
<td>f_user_test</td>
38+
<form action="/f_user_test/" method="post" onsubmit="return check()">
39+
{% csrf_token %}
40+
<td>
41+
사용자 테스트
42+
<br>
43+
<input type="text" id="user_id" name="user_id" placeholder="user_id">
44+
</td>
45+
<td>
46+
<input type='submit' value='실행'>
47+
</td>
48+
</form>
49+
</tr>
50+
<tr>
51+
<td>f_insert_user</td>
52+
<form action="/f_insert_user/" method="post" onsubmit="return check()">
53+
{% csrf_token %}
54+
<td>
55+
사용자 추가 (3가지 모두 입력해야함)
56+
<br>
57+
<input type="text" id="student_id" name="student_id" placeholder="student_id">
58+
<input type="text" id="name" name="name" placeholder="name">
59+
<input type="text" id="major" name="major" placeholder="major">
60+
</td>
61+
<td>
62+
<input type='submit' value='실행'>
63+
</td>
64+
</form>
65+
</tr>
66+
<tr>
67+
<td>f_test_update_lecture</td>
68+
<td>강의 업데이트 테스트용</td>
69+
<td><button onclick="run('/f_test_update_lecture/')">실행</button></td>
70+
</tr>
71+
<tr>
72+
<td>f_update_lecture</td>
73+
<td>new_lecture / all_lecutre 테이블 업데이트</td>
74+
<td><button onclick="run('/f_update_lecture/')">실행</button></td>
75+
</tr>
76+
</table>
77+
78+
</div>
79+
80+
<script>
81+
function run(url) {
82+
if (check()) {
83+
location.href = url;
84+
}
85+
}
86+
87+
function check(){
88+
return confirm("정말 실행하시겠습니까?");
89+
}
90+
</script>
91+
92+
{% endblock %}

app/templates/agree.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
</p>
3737
<p>4. <b>연계·융합전공</b> 기준은 연선-15학점, 연필-24학점 / 주전공 전필-15학점, 전선-24학점으로 설정되어 있습니다.</p>
3838
<p>5. 복수/연계 <b>부전공</b>에 대한 기준은 설정되어 있지 않습니다. 이를 유의하시기 바랍니다.</p>
39-
<p>6. 추천 과목 정보는 2022-1, 2022-2학기 정보로, 최신 기준으로 제공됩니다. (ex. 과거엔 서양철학이 2학점이였다면 현재는 3학점으로 변경됨)</p>
40-
<p>7. 검사 기준은 최신버전 수강편람(2022.08.10)을 반영하여 설정되었으며, 수강편람은 매년 개편되므로 자신이 알고 있는 구버전 수강편람과 다를 수 있습니다.</p>
39+
<p>6. 추천 과목 정보는 2022-2, 2023-1학기 정보로, 최신 기준으로 제공됩니다. (ex. 과거엔 서양철학이 2학점이였다면 현재는 3학점으로 변경됨)</p>
40+
<p>7. 검사 기준은 최신버전 수강편람(2023.02.04)을 반영하여 설정되었으며, 수강편람은 매년 개편되므로 자신이 알고 있는 구버전 수강편람과 다를 수 있습니다.</p>
4141
<p style="margin-left:1rem; font-size:0.85rem;">- 세종대학교 교과과정 참고 링크 : &nbsp;&nbsp;
4242
<a class="link_site" target="_blank"
43-
href="http://board.sejong.ac.kr/boardview.do?pkid=156096&currentPage=1&searchField=ALL&siteGubun=19&menuGubun=1&bbsConfigFK=335">
43+
href="http://board.sejong.ac.kr/boardview.do?pkid=160129&currentPage=1&searchField=ALL&siteGubun=19&menuGubun=1&bbsConfigFK=335">
4444
수강편람</a>
4545
&nbsp;&nbsp;
4646
<a class="link_site" target="_blank"

app/templates/head.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@
4747
</div>
4848
<div class='popup_box'>
4949
<ul>
50-
<li>💫 새해 복 많이 받으세요</li>
51-
<li>2023-1 관심과목 담기 기간 : 1.30(월) 10:00 ~ 2.2(목) 17:00</li>
50+
<li>수강신청 화이팅 🙌</li>
51+
<li>2023-1 수강신청 기간 : 2.13(월) ~ 2.16(목) 10:00 ~ 17:00</li>
5252
<li>모바일 환경에선 화면이 깨질 수 있으므로 웹 환경을 권장합니다.</li>
5353
<hr style='border: 0.001px solid rgb(230, 230, 230); margin:1rem 0 1rem 0; width:85%'>
5454
<li>
55-
<b>version 2.3.1 업데이트 내용</b>&nbsp;&nbsp;
55+
<b>version 2.3.2 업데이트 내용</b>&nbsp;&nbsp;
5656
<a class="link_site" target="_blank" href="https://github.com/hanjo8813/PleaseGraduate/blob/master/dev_record.md">업데이트 기록 보기</a>
5757
</li>
58+
<li>2023-1학기 강의시간표 및 수강편람 정보가 업데이트 되었습니다.</li>
59+
<li style="margin-left:1.2rem; font-size:1rem;">
60+
컴퓨터공학과 16학번 전공학점 기준 변경
61+
</li>
5862
</ul>
5963
</div>
6064
<div class="popup_check">
@@ -102,7 +106,7 @@
102106
*/
103107

104108
// 쿠키 여부에 따라 모달창 렌더링
105-
var unlook_cookie = document.cookie.match('(^|;) ?' + 'is_unlook_0821' + '=([^;]*)(;|$)');
109+
var unlook_cookie = document.cookie.match('(^|;) ?' + 'is_unlook_0212' + '=([^;]*)(;|$)');
106110
if (unlook_cookie == null) {
107111
document.getElementById('myModal').style.display = 'block';
108112
}
@@ -116,7 +120,7 @@
116120
if (chk.checked) {
117121
var date = new Date();
118122
date.setTime(date.getTime() + 60 * 24 * 60 * 60 * 1000);
119-
document.cookie = 'is_unlook_0821' + '=' + 'unlook' + ';expires=' + date.toUTCString() + ';path=/';
123+
document.cookie = 'is_unlook_0212' + '=' + 'unlook' + ';expires=' + date.toUTCString() + ';path=/';
120124
}
121125
}
122126
}

app/templates/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<i class="fas fa-graduation-cap"></i>
1010
</div>
1111
<div class="big_title">Please Graduate에 오신걸 환영합니다</div>
12-
<div class="small_title">version 2.3.1</div>
12+
<div class="small_title">version 2.3.2</div>
1313
</div>
1414
</div>
1515

app/templates/mypage.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,23 +471,24 @@
471471
<div style="color:rgb(164, 26, 55); font-size:7rem; margin:1rem 0 1rem 0">
472472
<i class="fa fa-exclamation"></i>
473473
</div>
474-
<p style="font-size:1.5rem; font-weight: bold;">22년도 수강편람 내용이 많이 변경되었습니다.</p>
475-
<p style="font-size:1.5rem; font-weight: bold;">반드시 수강편람을 확인하고 졸업요건 2차 검증을 해주세요!</p>
476-
<p style="font-size:1.1rem; font-weight: lighter;">(검사결과가 잘못되었다면 피드백 부탁드립니다 😇)</p>
474+
<p style="font-size:1.5rem; font-weight: bold;">고전독서 인증 및 기이수과목은 자동으로 업데이트되지 않습니다.</p>
475+
<p style="font-size:1.5rem; font-weight: bold;">변경사항이 있다면 직접 업데이트를 해주시기 바랍니다.</p>
476+
<p style="font-size:1.1rem; font-weight: lighter;">+ 항상 수강편람을 한번 더 확인하고 졸업요건 2차 검증을 해주세요!</p>
477+
<p style="font-size:1.1rem; font-weight: lighter;">검사결과가 잘못되었다면 피드백 부탁드립니다 😇</p>
477478
<button onclick="close_caution()" class='login_btn' style="padding: 0.5rem 0.9rem 0.5rem 0.9rem; width:auto; margin:2rem 0 2rem 0;">확인했어요</button>
478479
</div>
479480
</div>
480481
<script>
481-
var caution_cookie = document.cookie.match('(^|;) ?' + 'is_caution_0214' + '=([^;]*)(;|$)');
482+
var caution_cookie = document.cookie.match('(^|;) ?' + 'is_caution_0212' + '=([^;]*)(;|$)');
482483
if (caution_cookie == null) {
483484
document.getElementById('caution_modal').style.display = 'block';
484485
}
485486

486487
function close_caution(){
487488
document.getElementById('caution_modal').style.display = "none";
488489
var date = new Date();
489-
date.setTime(date.getTime() + 40 * 24 * 60 * 60 * 1000);
490-
document.cookie = 'is_caution_0214' + '=' + 'unlook' + ';expires=' + date.toUTCString() + ';path=/';
490+
date.setTime(date.getTime() + 100 * 24 * 60 * 60 * 1000);
491+
document.cookie = 'is_caution_0212' + '=' + 'unlook' + ';expires=' + date.toUTCString() + ';path=/';
491492
}
492493
</script>
493494

app/templates/reference.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<a href="/"><img src="{% static 'img/logo.png' %}"></a>
5353
</div> -->
5454

55+
<li>
56+
<a href='https://hanjo.notion.site/438e8f9a47c24cc4b268c8b8fb6349a1' target="_blank">Q&A</a>
57+
</li>
58+
5559
<li>
5660
<a href='https://forms.gle/f2vUqVg9wQFneBLf7' target="_blank">피드백하기</a>
5761
</li>
@@ -148,12 +152,12 @@ <h2 class="copyright">Copyright
148152
</p>
149153
<p>2. <b>연계·융합전공</b> 기준은 연선-15학점, 연필-24학점 / 주전공 전필-15학점, 전선-24학점으로 설정되어 있습니다.</p>
150154
<p>3. 복수/연계 <b>부전공</b>에 대한 기준은 설정되지 않았습니다. 이를 유의하시기 바랍니다.</p>
151-
<p>4. 추천 과목 정보는 2022-1, 2022-2학기 정보로, 최신 기준으로 제공됩니다. (ex. 과거엔 서양철학이 2학점이였다면 현재는 3학점으로 변경됨)</p>
152-
<p>5. 검사 기준은 최신버전 수강편람(2022.08.10)을 반영하여 설정되었으며, 수강편람은 매년 개편되므로 자신이 알고 있는 구버전 수강편람과 다를 수 있습니다.
155+
<p>4. 추천 과목 정보는 2022-2, 2023-1학기 정보로, 최신 기준으로 제공됩니다. (ex. 과거엔 서양철학이 2학점이였다면 현재는 3학점으로 변경됨)</p>
156+
<p>5. 검사 기준은 최신버전 수강편람(2023.02.04)을 반영하여 설정되었으며, 수강편람은 매년 개편되므로 자신이 알고 있는 구버전 수강편람과 다를 수 있습니다.
153157
</p>
154158
<p style="margin-left:1rem; font-size:0.85rem;">- 세종대학교 교과과정 참고 링크 : &nbsp;&nbsp;
155159
<a class="link_site" target="_blank"
156-
href="http://board.sejong.ac.kr/boardview.do?pkid=156096&currentPage=1&searchField=ALL&siteGubun=19&menuGubun=1&bbsConfigFK=335">
160+
href="http://board.sejong.ac.kr/boardview.do?pkid=160129&currentPage=1&searchField=ALL&siteGubun=19&menuGubun=1&bbsConfigFK=335">
157161
수강편람</a>
158162
&nbsp;&nbsp;
159163
<a class="link_site" target="_blank"

0 commit comments

Comments
 (0)