1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

- Updated first week of the first semester start date

- Disabled the ability to sign in with an account
This commit is contained in:
Eugene Fox
2023-02-06 01:37:46 +03:00
parent 2723157d5a
commit 423646eed5
9 changed files with 28 additions and 18 deletions
@@ -92,19 +92,19 @@ namespace GUTSchedule.Droid.Activities
start.Text = startDate.ToShortDateString();
groupTitle.Checked = prefs.GetBoolean("AddGroupToHeader", false);
authorize.Checked = prefs.GetBoolean("Authorize", true);
authorize.Checked = false; // prefs.GetBoolean("Authorize", true);
email.Text = prefs.GetString("email", "");
password.Text = prefs.GetString("password", "");
//email.Text = prefs.GetString("email", "");
//password.Text = prefs.GetString("password", "");
try
/*try
{
AvailableOccupations = await Parser.CheckAvailableOccupations(email.Text, password.Text);
}
catch
{
AvailableOccupations = new List<(string, string)>();
}
}*/
}
private void Export_Click(object sender, EventArgs e)
@@ -18,7 +18,7 @@
<AndroidResgenClass>Resource</AndroidResgenClass>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
@@ -14,7 +14,7 @@ namespace GUTSchedule.Droid
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.0.99.19")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.1.0.5")]
public partial class Resource
{
@@ -32,6 +32,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:visibility="gone"
android:text="@string/authorizeCheckbox"/>
<LinearLayout
@@ -39,7 +40,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
android:visibility="visible">
<TextView
android:layout_width="match_parent"
@@ -76,7 +77,8 @@
android:id="@+id/professorParams"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using GUTSchedule.Models;
using NUnit.Framework;
@@ -68,8 +69,8 @@ namespace GUTSchedule.Test
var list = await Parser.GetSchedule(new DefaultExportParameters
{
Course = "0",
FacultyId = faculty.id,
GroupId = group.id,
FacultyId = "50005",
GroupId = "54222",
EndDate = DateTime.Today.AddDays(7),
StartDate = DateTime.Today
});
@@ -78,7 +79,7 @@ namespace GUTSchedule.Test
Assert.IsTrue(list.Count > 0);
Console.WriteLine("Events list:");
foreach (var i in list)
foreach (var i in list.OrderBy(i => i.StartTime))
{
Console.WriteLine("--------------------------------------------------");
Console.WriteLine($"[{i.Group}] {i.Order}. {i.Name} ({i.Type})");
+1 -1
View File
@@ -70,7 +70,7 @@ namespace GUTSchedule
}
else if (exportParameters is DefaultExportParameters args)
{
DateTime startDate = new DateTime(2022, 8, 29);
DateTime startDate = new DateTime(2023, 2, 6);
IHtmlDocument[] rawSchedule = await GetRawSchedule(args.FacultyId, args.Course, args.GroupId);
if(rawSchedule[0] != null)
schedule.AddRange(ParseRegularSchedule(startDate, rawSchedule[0]));
@@ -1,5 +1,5 @@
- Updated first week of the first semester start date for anonymous timetable export
Since anonymous schedule on SPbSUT website is based on week numbers, it is crucial to manually set the date of first week's monday to get correct dates for the timetable
You can sign in with your SPbSUT profile to have access to correct timetable anytime
- Disabled the ability to sign in with an account
This is a temporary measure as at the time this feature is blocked by DDoS protection software that was recently installed on the SPbSUT website. We are working on a solution to this problem
@@ -1,5 +1,5 @@
- Обновлена дата начала первой недели семестра для анонимного экспорта расписания
Так как анонимное расписание на сайте СПбГУТ представлено по номерам недели, перед началом каждого семестра необходимо вручную обновлять дату понедельника первой недели для корректного указания даты в расписании
Чтобы всегда иметь возможность узнать правильное расписание, пользуйтесь авторизацией через Личный кабинет
- Отключена возможность входа с помощью аккаунта
Это временное решение, так как на данный момент данная функция заблокирована защитой от DDoS, которая была недавно установлена на сайте СПбГУТ. Мы работаем над решением данной проблемы
+8 -1
View File
@@ -1,2 +1,9 @@
## Core
- Updated first week of the first semester start date for anonymous timetable export
- Updated first week of the first semester start date for anonymous timetable export
Since anonymous schedule on SPbSUT website is based on week numbers, it is crucial to manually set the date of first week's monday to get correct dates for the timetable
## Android
- Disabled the ability to sign in with an account
This is a temporary measure as at the time this feature is blocked by DDoS protection software that was recently installed on the SPbSUT website. We are working on a solution to this problem
## Windows
At this time UWP version of the app is not being supported