Skip to content

Commit

Permalink
Update apat-for-filemovers.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saisengen committed Feb 2, 2024
1 parent afcedb2 commit 62c35cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion other-bots/apat-for-filemovers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static void Save(HttpClient site, string title, string text, string comment)
}
static void Main()
{
var badusers = new List<string>() { "Шухрат Саъдиев" };
var globalusers = new HashSet<string>();
var globalusers_needs_flag = new HashSet<string>();
var apats = new HashSet<string>();
Expand Down Expand Up @@ -84,7 +85,7 @@ static void Main()
using (var rdr = new XmlTextReader(new StringReader(site.GetStringAsync("https://ru.wikipedia.org/w/api.php?action=query&format=xml&list=usercontribs&uclimit=max&ucend=" + lastmonth.ToString("yyyy-MM-dd") + "T00:00:00.000Z&ucprop=comment&ucuser=" + Uri.EscapeDataString(mover)).Result)))
while (rdr.Read())
if (rdr.Name == "item" && rdr.GetAttribute("comment") != null)
if (rdr.GetAttribute("comment").Contains("GR]"))
if (rdr.GetAttribute("comment").Contains("GR]") && !badusers.Contains(mover))
{
globalusers_needs_flag.Add(mover);
break;
Expand Down

0 comments on commit 62c35cf

Please sign in to comment.